//
//  UIBarButtonItem+Extension.h
//  ShinyOrder
//
//  Created by 王方伟 on 16/7/25.
//  Copyright © 2016年 ShinyHub. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Extension)


/**
 创建有图片item

 @param icon 图片
 @param highIcon 高亮图片
 @param target self
 @param action 动作
 @return item
 */
+ (UIBarButtonItem *)sh_itemWithIcon:(UIImage *)icon highIcon:(UIImage *)highIcon target:(id)target action:(SEL)action;


/**
 创建有图片和小圆点item

 @param icon 图片
 @param highIcon 高亮图片
 @param bageValue 小圆点
 @param color 小圆点颜色
 @param target self
 @param action 动作
 @return item
 */
+ (UIBarButtonItem *)sh_itemWithIcon:(UIImage *)icon highIcon:(UIImage *)highIcon bageValue:(NSInteger)bageValue bageColor:(UIColor *)color target:(id)target action:(SEL)action;


/**
 创建有图片和标题的item

 @param title 标题
 @param color 标题颜色
 @param font 标题大小
 @param icon 图片
 @param highIcon 高亮图片
 @param target self
 @param action 动作
 @return item
 */
+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title titleColor:(UIColor *)color titleFont:(UIFont *)font icon:(UIImage *)icon highIcon:(UIImage *)highIcon target:(id)target action:(SEL)action;


/**
 创建有标题的item

 @param title 标题
 @param color 标题颜色
 @param font 标题大小
 @param target self
 @param action 动作
 @return item
 */
+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title titleColor:(UIColor *)color titleFont:(UIFont *)font target:(id)target action:(SEL)action;

- (void)setBarButtonItemColor:(UIColor *)color;
- (void)setBarButtonItemTitle:(NSString *)title;
- (void)setBarButtonItemBageValue:(NSInteger)bageValue;
@end
